<!DOCTYPE html>
<html>
<head><title>
    第十九届浙江投资贸易洽谈会 --注册
</title>
    <meta http-equiv=Content-Type content="text/html;charset=utf-8">
    <meta name="format-detection" content="telephone = no"/>
    <meta name="viewport" content="width=device-width,user-scalable=no"/>
    <link href="/Public/projects/activity/pc/css/pc2.css?v=1" rel="stylesheet">
    <!-- <link href="/Public/projects/activity/pc/css/magic-check.min.css" rel="stylesheet"> -->
    <link rel="icon" href="/Public/projects/activity/favicon.ico">

    <!--[if lt IE 9]>
    <script src="/Public/projects/activity/pc/libs/html5shiv.min.js"></script>
    <script src="/Public/projects/activity/pc/libs/respond.min.js"></script>
    <script src="/Public/projects/activity/pc/libs/html5.js"></script>
    <script src="/Public/projects/activity/pc/libs/selectivizr.js"></script>
    <![endif]-->

    <!--[if lt IE 9]>
    <style type="text/css">

        input.color-block {
            background:transparent;
            filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000,endColorstr=#00000000);
            zoom: 1;
        }

        .info.color-block3 {
            background:transparent;
            filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#5f01abff,endColorstr=#5f01abff);
            zoom: 1;
        }

    </style>
    <![endif]-->

</head>
<body>
<div class="nav">
    <style scoped>
        .nav1 a:hover{
            cursor: pointer;
        }
    </style>
    <div class="nav1">
        <ul><a class="home" title="">
            <li> 首页 / HOME
            </li>
        </a> <a class="agenda" title="">
            <li> 论坛议程 / THE AGENDA
            </li>
        </a> <a class="guest" title="">
            <li> 演讲嘉宾 / SPEAKERS
            </li>
        </a> <a class="register" title="">
            <li> 参会注册 / REGISTER
            </li>
        </a></ul>
    </div>
</div>

<style scoped>

    .magic-radio+label{
        line-height: normal;
        padding-left: 0;
    }
    .magic-radio+label:before{
        width: 10px;
        height: 10px;
        top:2px;
    }
    .magic-radio+label:after{
        top:4px;left:2px;
        width:7px;height:7px;
        background-color: #6bc4e2;
    }
    .to-left{
        float: left;
    }
    .to-right{
        float: right;
    }
    .top,.content{
        float: none;
    }
    .content{
        padding: inherit;
        min-width: 900px;
        width: 100%;
    }
    .content .title{
        width:100%;border-bottom: 1px dashed #fff;font-size:32px;
        text-align: center;line-height: 42px;
        height: auto;
        padding: 40px 0;
    }
    .content .info{
        background-color: rgba(1,171,255,0.3);
        min-height: 40px;
    }
    .base-chunk,.option-chunk{
        position: relative;
    }
    .content .info .option-chunk{
        background-color: rgba(1,171,255,0.6);
        min-height: 40px;
    }

    .info .label-text,
    .info .label-verify,
    .info .label-checkbox{
        margin: 0 200px;
        position: relative;
        font-size: 11px;
        letter-spacing: 1px;
        overflow: auto;
    }
    .label-text > *,
    .label-verify > *,
    .label-checkbox > * {
        float: right;
    }
    label.label{
        line-height:40px;
    }
    .label-text .text{
        width: 70%;
        right: 0;
        height:30px;
        padding: 0;
        margin: 5px 0 0 20px;
        border:1px dashed #6bc4e2;
        background-color: rgba(0,0,0,0);
    }
    .label-text .text .text-input{
        width: 80%;
        height: 80%;
        margin-left: 10px;
        background-color: rgba(0,0,0,0);
        border-style: none;
        outline: none;
        color: white;
    }

    .text span.tips ,.checkbox-group span.tips{
        position: absolute;top:4px;right:0;
        color:#ffffff;font-weight: normal;
    }

    .label-checkbox .checkbox-group{
        width: 70%;
        margin: 6px 0 0 20px;
    }
    .checkbox-group .checkbox-item{
        height:28px;
        margin-right:8px;
    }
    .checkbox-group{
        overflow: hidden;
    }
    .label-verify .verify-wrapper{
        width: 70%;
        right: 0;
        height:30px;
        padding: 0;
        margin: 5px 0 0 20px;
    }
    .label-verify .verify-wrapper .text{
        width: 40%;
        height: 100%;
        left: 0;
        border:1px dashed #6bc4e2;
        background-color: rgba(0,0,0,0);
        /*position: relative;*/
    }
    .verify-wrapper .text-input{
        width: 80%;
        height: 80%;
        margin-left: 10px;
        background-color: rgba(0,0,0,0);
        border-style: none;
        outline: none;
        color: white;
    }
    .verify-wrapper .verify-code{
        width: 100px;
        height: 75%;
        position: absolute;
        top:5px; right:20%;
        background-color: rgba(0,0,0,0);
    }
    .verify-wrapper .verify-code img{
        width:100%;height:100%;
    }
    .add-more{
        position: absolute;
        bottom:5px;
        right: 20%;
    }
    .add-less{
        position: absolute;
        bottom:5px;
        right: 20%;
    }
    .button{
        border: 1px solid #ffffff;
        border-radius: 16px;
        height: 24px;
        width: 100px;
        text-align: right;
        font-weight: normal;
        line-height: normal;
    }
    .button:hover{
        cursor: pointer;
    }
    .button .text{
        margin-right: 10px;
        font-weight: normal;
        font-size: 12px;
    }
    .button .ico{
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 1px solid #ffffff;
        border-radius: 50%;
        left:5px;top:4px;
        position: absolute;
        line-height: 90%;
        text-align: center;
    }

    .layout-blank40{
        height: 40px;
    }
    .for-submit button {
        width: 80%;
        height: 30px;
        color: white;
        border: 0;
        outline: none;
    }
    .for-submit button:hover{
        cursor: pointer;
    }
    .for-submit button.submit{
        background-color: #0188ca;
    }
    .for-submit button.reset{
        background-color: #0689f5;
    }
    .verify-code:hover{cursor: pointer;}

    /*#industry .checkbox-item.to-right{
        margin-left: 30px;
        float: left;
    }*/
</style>
<div class="main">
    <div class="top"><img src="/Public/projects/activity/pc/img/head2.png?v=5"></div>

    <div class="content">
        <div class="title">
            论坛观众注册表
            <br>
            <span style="font-size:18px;">Sign Up Now</span>
        </div>
        <div class="info color-block3">
            <div class="base-chunk">
                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="name-1">
                        <span class="tips">（必填 required）</span>
                    </div>
                    <label class="label" for="name-1">姓名 / Name</label>
                </div>

                <div class="label-checkbox">
                    <div class="checkbox-group" id="certificate-1">
                        <div class="checkbox-item to-left">
                            <input checked class="magic-radio" type="radio" name="certificate1" id="certificate-id1" data-value="0"/>
                            <label for="certificate-id1">身份证 / ID</label>
                        </div>
                        <div style="margin-left:6px;" class="checkbox-item to-left">
                            <input class="magic-radio" type="radio" name="certificate1" id="certificate-passport1" data-value="1"/>
                            <label for="certificate-passport1">护照 / Passport</label>
                        </div>
                        <!-- <span class="tips">（必填 required）</span> -->
                    </div>
                    <label class="label">选择证件 / Certificates</label>
                </div>

                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="number-1">
                        <span class="tips">（必填 required）</span>
                    </div>
                    <label class="label" for="number-1">证件号 / Number</label>
                </div>

                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="nationality-1">
                        <span class="tips">（必填 required）</span>
                    </div>
                    <label class="label" for="nationality-1">国籍 / Nationality</label>
                </div>

                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="position-1">
                    </div>
                    <label class="label" for="position-1">职务 / Position</label>
                </div>
                <div class="label-checkbox">
                    <div class="checkbox-group" id="appellation-1">
                        <div class="checkbox-item to-left">
                            <input checked class="magic-radio" type="radio" name="sex1" id="sex-man" data-value="0"/>
                            <label for="sex-man">先生 Mr</label>
                        </div>
                        <div style="margin-left:6px;" class="checkbox-item to-left">
                            <input class="magic-radio" type="radio" name="sex1" id="sex-women" data-value="1"/>
                            <label for="sex-women">女士 Mrs / Miss</label>
                        </div>
                    </div>
                    <label class="label">称谓 / Gender</label>
                </div>
                <div class="add-more button">
                    <span class="ico">+</span>
                    <span class="text">添加多人</span>
                </div>
            </div>

            <div class="option-chunk">
                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="name-2">
                        <span class="tips">（必填 required）</span>
                    </div>
                    <label class="label" for="name-2">姓名 / Name</label>
                </div>

                <div class="label-checkbox">
                    <div class="checkbox-group" id="certificate-2">
                        <div class="checkbox-item to-left">
                            <input checked class="magic-radio" type="radio" name="certificate2" id="certificate-id2" data-value="0"/>
                            <label for="certificate-id2">身份证 / ID</label>
                        </div>
                        <div style="margin-left:6px;" class="checkbox-item to-left">
                            <input class="magic-radio" type="radio" name="certificate2" id="certificate-passport2" data-value="1"/>
                            <label for="certificate-passport2">护照 / Passport</label>
                        </div>
                        <!-- <span class="tips">（必填 required）</span> -->
                    </div>
                    <label class="label">选择证件 / Certificates</label>
                </div>

                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="number-2">
                        <span class="tips">（必填 required）</span>
                    </div>
                    <label class="label" for="number-2">证件号 / Number</label>
                </div>

                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="nationality-2">
                        <span class="tips">（必填 required）</span>
                    </div>
                    <label class="label" for="nationality-2">国籍 / Nationality</label>
                </div>


                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="position-2">
                        <!-- <span class="tips">（必填）</span> -->
                    </div>
                    <label class="label" for="position-2">职务 / Position</label>
                </div>
                <div class="label-checkbox">
                    <div class="checkbox-group " id="appellation-2">
                        <div class="checkbox-item to-left">
                            <input checked class="magic-radio" type="radio" name="sex2" id="sex-man1" data-value="0"/>
                            <label for="sex-man1">先生 Mr</label>
                        </div>
                        <div style="margin-left:6px;" class="checkbox-item to-left">
                            <input class="magic-radio" type="radio" name="sex2" id="sex-women1" data-value="1"/>
                            <label for="sex-women1">女士 Mrs / Miss</label>
                        </div>
                    </div>
                    <label class="label">称谓 / Gender</label>
                </div>

                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="name-3">
                        <span class="tips">（必填 required）</span>
                    </div>
                    <label class="label" for="name-3">姓名 / Name</label>
                </div>

                <div class="label-checkbox">
                    <div class="checkbox-group" id="certificate-3">
                        <div class="checkbox-item to-left">
                            <input checked class="magic-radio" type="radio" name="certificate3" id="certificate-id3" data-value="0"/>
                            <label for="certificate-id3">身份证 / ID</label>
                        </div>
                        <div style="margin-left:6px;" class="checkbox-item to-left">
                            <input class="magic-radio" type="radio" name="certificate3" id="certificate-passport3" data-value="1"/>
                            <label for="certificate-passport3">护照 / Passport</label>
                        </div>
                        <!-- <span class="tips">（必填 required）</span> -->
                    </div>
                    <label class="label">选择证件 / Certificates</label>
                </div>

                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="number-3">
                        <span class="tips">（必填 required）</span>
                    </div>
                    <label class="label" for="number-3">证件号 / Number</label>
                </div>

                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="nationality-3">
                        <span class="tips">（必填 required）</span>
                    </div>
                    <label class="label" for="nationality-3">国籍 / Nationality</label>
                </div>

                <div class="label-text">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="position-3">
                        <!-- <span class="tips">（必填）</span> -->
                    </div>
                    <label class="label" for="position-3">职务 / Position</label>
                </div>
                <div class="label-checkbox">
                    <div class="checkbox-group " id="appellation-3">
                        <div class="checkbox-item to-left">
                            <input checked class="magic-radio" type="radio" name="sex3" id="sex-man2" data-value="0"/>
                            <label for="sex-man2">先生 Mr</label>
                        </div>
                        <div style="margin-left:6px;" class="checkbox-item to-left">
                            <input class="magic-radio" type="radio" name="sex3" id="sex-women2" data-value="1"/>
                            <label for="sex-women2">女士 Mrs / Miss</label>
                        </div>
                    </div>
                    <label class="label">称谓 / Gender</label>
                </div>
                <div class="add-less button">
                    <span class="ico">-</span>
                    <span class="text">收起</span>
                </div>
            </div>

            <div class="label-text">
                <div class="text">
                    <input class="text-input color-block" type="text" id="company">
                    <span class="tips">（必填 required）</span>
                </div>
                <label class="label" for="company">公司 / Company</label>
            </div>

            <div class="label-checkbox">
                <div class="checkbox-group" id="industry" style="font-size: 11px;">
                    <div class="checkbox-item to-left">
                        <input checked class="magic-radio" type="radio" name="industry" id="check1" data-value="1"/>
                        <label for="check1">信息产业 Information Technology</label>
                    </div>
                    <div class="checkbox-item to-right" style="margin-right: 13px;">
                        <input class="magic-radio" type="radio" name="industry" id="check2" data-value="2"/>
                        <label for="check2">时尚产业 Fashion</label>
                    </div>
                    <div class="checkbox-item to-left">
                        <input class="magic-radio" type="radio" name="industry" id="check3" data-value="3"/>
                        <label for="check3">环保产业 Environmental Protection</label>
                    </div>
                    <div class="checkbox-item to-right" style="margin-right: 5px;">
                        <input class="magic-radio" type="radio" name="industry" id="check4" data-value="4"/>
                        <label for="check4">金融产业 Financial</label>
                    </div>
                    <div class="checkbox-item to-left">
                        <input class="magic-radio" type="radio" name="industry" id="check5" data-value="5"/>
                        <label for="check5">健康产业 Healthcare</label>
                    </div> 
                    <div class="checkbox-item to-right" style="margin-right: 10px;">
                        <input class="magic-radio" type="radio" name="industry" id="check6" data-value="6"/>
                        <label for="check6">旅游产业 Tourism</label>
                    </div>
                    <div class="checkbox-item to-left">
                        <input class="magic-radio" type="radio" name="industry" id="check8" data-value="8"/>
                        <label for="check8">文创产业 Culture and Creative Induetries</label>
                    </div>
                    <div class="checkbox-item to-left">
                        <input class="magic-radio" type="radio" name="industry" id="check7" data-value="7"/>
                        <label for="check7">高端装备制造产业 High-end Equipment Manufacturing</label>
                    </div>
                    <div class="checkbox-item to-left">
                        <input class="magic-radio" type="radio" name="industry" id="check9" data-value="0"/>
                        <label for="check9">其他产业 Others</label>
                    </div>
                </div>
                <label class="label">所属产业 / Industry</label>
            </div>

            <div class="label-text">
                <div class="text">
                    <input class="text-input color-block" type="text" id="address">
                </div>
                <label class="label" for="address">详细地址 / Address</label>
            </div>
            <div class="label-text">
                <div class="text">
                    <input class="text-input color-block" type="text" id="postcode">
                </div>
                <label class="label" for="postcode">邮政编码 / Postcode</label>
            </div>
            <div class="label-text">
                <div class="text">
                    <input class="text-input color-block" type="text" id="tel">
                </div>
                <label class="label" for="tel">电话号码 / Tel Phone</label>
            </div>
            <div class="label-text">
                <div class="text">
                    <input class="text-input color-block" type="text" id="mobile">
                    <span class="tips">（必填 required）</span>
                </div>
                <label class="label" for="mobile">手机号码 / Mobile Phone</label>
            </div>
            <div class="label-text">
                <div class="text">
                    <input class="text-input color-block" type="text" id="e-mail">
                    <span class="tips">（必填 required）</span>
                </div>
                <label class="label" for="e-mail">邮箱 / E-mail</label>
            </div>
            <div class="label-text">
                <div class="text">
                    <input class="text-input color-block" type="text" id="note">
                </div>
                <label class="label" for="note">备注 / Note</label>
            </div>

            <div class="label-verify" style="overflow: hidden">
                <div class="verify-wrapper">
                    <div class="text">
                        <input class="text-input color-block" type="text" id="verify">
                        <span class="tips">（必填 required）</span>
                    </div>
                    <div class="verify-code">
                        <img id="verify-img">
                    </div>
                </div>
                <label class="label" for="verify">验证码</label>
            </div>
            
            <div class="layout-blank40"></div>
            <div class="label-text for-submit">
                <div class="text" style="position: relative; border:0;overflow: hidden">
                    <div class="" style="width:50%;height:100%;">
                        <button class="submit">提交 / submit</button>
                    </div>
                    <div class="" style="width:50%;height:100%;position: absolute; top:0;right:0">
                        <button class="reset">重填 / rewrite</button>
                    </div>
                </div>
                <!--<label class="label" for="mobile">手机号码 / Mobile Phone</label>-->
            </div>
            <div class="layout-blank40"></div>
        </div>

    </div> 
    <!--公共底部 -->
    <div style="text-align: center">Copyright ZJITS. All Rights Received.</div>
    <!--/公共底部 -->
</div>
<script src="/Public/projects/activity/pc/libs/jquery.min.js"></script>
<script src="/Public/projects/activity/pc/js/height-light.js"></script>
<script src="/Public/projects/activity/pc/js/common.js"></script>
<script type="text/javascript">

    $(function () {

        $(".checkbox-group").tap(function (e) {
            var $this = $(e.target);
            if($this.is(".magic-radio+label")){
                var $radios = $(".magic-radio", e.currentTarget);
                for(var i=$radios.length-1;i>=0; i--){
                    if(this === $radios[i]) continue;
                    $radios[i].checked = false;
                }
            }
        });
        var contextId = ns.getLocationParams()["id"];
        $(".option-chunk").hide();
        $(".button.add-more").tap(function () {
            $(".option-chunk").show();
            $(".button.add-more").hide();
        });
        $(".button.add-less").tap(function () {
            $(".option-chunk").hide();
            $(".button.add-more").show();
        });
        $(".nav1 .home").tap(function () {
            ns.navigate("first?id="+contextId);
        });
        $(".nav1 .agenda").tap(function () {
            ns.navigate("agenda?id="+contextId);
        });
        $(".nav1 .guest").tap(function () {
            ns.navigate("guest?id="+contextId);
        });
        $(".nav1 .register").tap(function () {
            ns.navigate("index?id="+contextId);
        });

        var g_index = 0;
        function updateVerifyImg() {
            $("#verify-img").attr("src",ns.genServerApiUrl("getVerify?v=") + (g_index++) );
        }
        $(".verify-code").tap(function () {
            updateVerifyImg();
        });
        updateVerifyImg();

        var isSubmitVisible = false;
        function getInputValue(selector , needCheck ,type,msg) {
            if(!isSubmitVisible)return;
            var $el = $(selector);
            if($el.length==0){
                ns.log("err " + selector+" not find.");
                isSubmitVisible = false;
            }
            var val = $el.val();
            if(needCheck){
                switch(type){
                    case 'normal':
                        if($.isEmptyObject(val)){
                            alert(msg);
                            isSubmitVisible = false;
                        }
                        break;
                    case 'mobile':
                    case 'email':
                        if(!ns.verify(type ,val)){
                            alert(msg);
                            isSubmitVisible = false;
                        }
                        break;
                    case 'verify':
                        if($.isEmptyObject(val) || val.length != 5){
                            alert(msg);
                            isSubmitVisible = false;
                        }
                        break;
                    default:
                        ns.log("err: unknown type");
                        alert(msg);
                        isSubmitVisible = false;
                        break;
                }
            }
            return val;
        }

        function getCheckboxValue(selector ) {
            if(!isSubmitVisible)return;
            var $el = $(selector);
            if($el.length==0){
                ns.log("err " + selector+" not find.");
                isSubmitVisible = false;
            }
            if(!$el.is(".checkbox-group")){
                ns.log("err " + selector+" is not checkbox group.");
                isSubmitVisible = false;
            }
            return $el.find(".magic-radio:checked").attr("data-value");
        }

        $("button.reset").tap(function () {
            ns.windowFresh();
        });

        function bindCheck(vals , msgs){
            var isBind = 0 , errIdx = -1 ,len = vals.length;
            vals.forEach(function(e ,i){
                var isEmpty = $.isEmptyObject(e);
                if(!isEmpty){
                    isBind++;
                }
                else if(errIdx == -1){
                    errIdx = i;
                }
            });
            if(isBind > 0 && isBind < len){
                alert(msgs[errIdx]);
                return false;
            }
            return true;
        }


        
        $("button.submit").tap(function () {
            isSubmitVisible = true;
            var
                    id = contextId
                    ,name = getInputValue('#name-1', true,"normal","请填写姓名！")
                    ,certificate1 = getCheckboxValue("#certificate-1", true,"normal","请选择证件类别")
                    ,number1 = getInputValue("#number-1", true,"normal","请填写证件号！")
                    ,nationality1 = getInputValue("#nationality-1", true,"normal","请填写国籍！")
                    ,position = getInputValue('#position-1')
                    ,appellation = getCheckboxValue('#appellation-1')
                    ,ext = [
                        getInputValue('#name-2'),//0
                        getCheckboxValue("#certificate-2"),
                        getInputValue("#number-2"),//2
                        getInputValue("#nationality-2"),//3
                        getInputValue('#position-2'),
                        getCheckboxValue('#appellation-2'),
                        getInputValue('#name-3'),//6
                        getCheckboxValue("#certificate-3"),
                        getInputValue("#number-3"),//8
                        getInputValue("#nationality-3"),//9
                        getInputValue('#position-3'),
                        getCheckboxValue('#appellation-3')
                    ]
                    ,company = getInputValue('#company', true,"normal","请填写公司！")
                    ,industry = getCheckboxValue('#industry')
                    ,address = getInputValue('#address')
                    ,postcode = getInputValue('#postcode')
                    ,tel = getInputValue('#tel')
                    ,mobile = getInputValue('#mobile', true ,"normal","手机号码填写不正确！")
                    ,email = getInputValue('#e-mail', true,"email","邮箱填写不正确！")
                    ,note = getInputValue('#note')
                    ,verifyCode = getInputValue('#verify', true,"verify","验证码填写不正确！")
                    ;
            if(!isSubmitVisible)return;

            if(!bindCheck(
                [ext[0],ext[2],ext[3]],
                ["请填写可选项中第一位的姓名！","请填写可选项中第一位的证件号！","请填写可选项中第一位的国籍！"])
            ){
                return;
            }

            if(!bindCheck(
                [ext[6],ext[8],ext[9]],
                ["请填写可选项中第二位的姓名！","请填写可选项中第二位的证件号！","请填写可选项中第二位的国籍！"])
            ){
                return;
            }


            ns.ajax({
                url: "register",
                data:{
                    id:id,
                    name:name,
                    position:position,
                    appellation:appellation,
                    ext:ext.join("|"),
                    company:company,
                    industry:industry,
                    address:address,
                    postcode:postcode,
                    telephone:tel,
                    mobile:mobile,
                    email:email,
                    note:note,
                    code:verifyCode,
                    card_type:certificate1,
                    card_number:number1,
                    country:nationality1
                },
                success: function (result) {
                    alert(result.result);
                    if(result.status == 1){
                        ns.windowFresh();
                    }
                }
            });
        });
    })
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?80e42c68052dc7b0d359cd50f98083d3";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>